package com.dongjiantong.user.service;

import com.dongjiantong.mybatis.BaseService;
import com.dongjiantong.user.model.LoginUser;
import com.dongjiantong.user.model.MzUser;
import com.dongjiantong.user.enums.UserEnum;
import com.dongjiantong.user.model.dtos.BossUserDto;
import com.github.pagehelper.PageInfo;

import java.util.Map;

/**
 * BOSS人员处理
 * @author cao
 * @create 2017-11-20 下午1:22
 **/

public interface BossUserService extends BaseService<BossUserDto> {

    /**
     * 查询boss人员列表
     * @param userEnum
     * @param pageNum
     * @param pageSize
     * @param searchMap
     * @return
     */
    PageInfo<BossUserDto> getBossListByPage(UserEnum userEnum, Integer pageNum, Integer pageSize, Map<String,Object> searchMap);

    /**
     * 添加boss用户
     * @param mzUser
     * @param loginUser
     * @return
     */
    boolean createBossUsers(MzUser mzUser, LoginUser loginUser);

    /**
     * 修改运维人员
     * @param mzUser
     * @param loginUser
     * @return
     */
    boolean editBossUsers(MzUser mzUser, LoginUser loginUser);


}
